package com.ean.backpack.wsapim.main;

import com.ean.backpack.wsapi.HotelServices;
import com.ean.backpack.wsapi.HotelServicesImplService;
import com.ean.backpack.wsapi.LocaleType;
import com.ean.backpack.wsapi.PingRequest;
import com.ean.backpack.wsapi.PingResponse;

public class HotelListServiceInvoker {

	/**
	 * @param args
	 */
	public static void main(String[] args) {

		
		HotelServicesImplService service = new HotelServicesImplService();
		
		HotelServices port = service.getHotelServicesImplPort();
		PingRequest pingRequest = new PingRequest();
				  
		pingRequest.setApiKey("cbrzfta369qwyrm9t5b8y8kf");
		pingRequest.setCustomerIpAddress("");
		pingRequest.setCustomerSessionId("");
		pingRequest.setCustomerUserAgent("");
		pingRequest.setCurrencyCode("USD");
		pingRequest.setSig(null);
		pingRequest.setEcho("Test Ping");
		pingRequest.setCid(55505);
		pingRequest.setDebug(true);
		pingRequest.setTest(true);
		pingRequest.setLocale(LocaleType.EN_GB);
		pingRequest.setMinorRev(22);
		
		PingResponse pingResponse = port.getPing(pingRequest);
		System.out.println(pingResponse.getServerInfo());
	}

}
